package com.xgk.boot.module.core.enums;

/**
 * System 操作日志枚举
 * 目的：统一管理，也减少 Service 里各种“复杂”字符串
 *
 * @author  xgk
 */
public interface LogRecordConstants {

    // ======================= SYSTEM_USER 用户 =======================

    String SYSTEM_USER_TYPE = "用户管理";
    String SYSTEM_USER_CREATE_SUB_TYPE = "创建用户";
    String SYSTEM_USER_CREATE_SUCCESS = "创建了用户【{{#user.nickname}}】";
    String SYSTEM_USER_UPDATE_SUB_TYPE = "更新用户";
    String SYSTEM_USER_UPDATE_SUCCESS = "更新了用户【{{#user.nickname}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_USER_DELETE_SUB_TYPE = "删除用户";
    String SYSTEM_USER_DELETE_SUCCESS = "删除了用户【{{#user.nickname}}】";
    String SYSTEM_USER_UPDATE_PASSWORD_SUB_TYPE = "重置用户密码";
    String SYSTEM_USER_UPDATE_PASSWORD_SUCCESS = "将用户【{{#user.nickname}}】的密码从【{{#user.password}}】重置为【{{#newPassword}}】";

    // ==========================customer 客户 ===================================
    String SYSTEM_CUSTOMER_CREATE_SUB_TYPE = "创建客户";
    String SYSTEM_CUSTOMER_CREATE_SUCCESS = "创建了客户【{{#customer.customerCode}}】";
    String SYSTEM_CUSTOMER_UPDATE_SUB_TYPE = "更新客户";
    String SYSTEM_CUSTOMER_UPDATE_SUCCESS = "更新了客户【{{#customer.customerCode}}】";
    String SYSTEM_CUSTOMER_UPDATE_STATUS_SUCCESS = "更新了客户【{{#customer.customerCode}}】状态";

    // ======================= SYSTEM_ROLE 角色 =======================

    String SYSTEM_ROLE_TYPE = "角色管理";
    String SYSTEM_ROLE_CREATE_SUB_TYPE = "创建角色";
    String SYSTEM_ROLE_CREATE_SUCCESS = "创建了角色【{{#role.name}}】";
    String SYSTEM_ROLE_UPDATE_SUB_TYPE = "更新角色";
    String SYSTEM_ROLE_UPDATE_SUCCESS = "更新了角色【{{#role.name}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_ROLE_DELETE_SUB_TYPE = "删除角色";
    String SYSTEM_ROLE_DELETE_SUCCESS = "删除了角色【{{#role.name}}】";


    String SYSTEM_API_TYPE = "供应商API";
    String SYSTEM_API_UPDATE_TYPE = "更新API";
    String SYSTEM_API_CREATE_TYPE = "创建API";

    String SYSTEM_API_CREATE_SUCCESS = "创建了API【{{#api.asName}}】";
    String SYSTEM_API_UPDATE_SUCCESS = "更新了角色【{{#api.asName}}】: {_DIFF{#updateReqVO}}";


    String SYSTEM_SP_TYPE = "供应商管理";
    String SYSTEM_SP_UPDATE_TYPE = "更新供应商";
    String SYSTEM_SP_CREATE_TYPE = "创建供应商";

    String SYSTEM_SP_CREATE_SUCCESS = "创建了供应商【{{#sp.spName}}】";
    String SYSTEM_SP_UPDATE_SUCCESS = "更新了角色【{{#sp.spName}}】: {_DIFF{#updateReqVO}}";



    // ======================= SYSTEM_USER_ROLE 用户角色授权 =======================
    String SYSTEM_USER_ROLE_CREATE = "用户角色授权";
    String SYSTEM_USER_ROLE_CREATE_SUCCESS = "授权用户【{{#userRole.userId}}】,角色【{{#userRole.roleId}}】";
    String SYSTEM_USER_ALL_ROLE_DELETE_SUCCESS = "删除用户【{{#userId}}】,所有角色";

    // ======================= SYSTEM_PRODUCT 商品设置 =======================
    String SYSTEM_PRODUCT_TYPE = "商品管理";
    String SYSTEM_PRODUCT_UPDATE_TYPE = "更新商品";
    String SYSTEM_PRODUCT_CREATE_TYPE = "创建商品";
    String SYSTEM_PRODUCT_DELETE_TYPE = "删除商品";
    String SYSTEM_PRODUCT_CUSTOMER_TYPE = "商品客户关系";

    String SYSTEM_PRODUCT_CREATE_SUCCESS = "创建了商品【{{#product.prName}}】";
    String SYSTEM_PRODUCT_UPDATE_SUCCESS = "更新了商品【{{#product.prName}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_PRODUCT_DELETE_SUCCESS = "删除了商品【{{#product.prName}}】";
    String SYSTEM_PRODUCT_CUSTOMER_SUCCESS = "设置商品客户关系【{{#product.prName}}】";
    String SYSTEM_CUSTOMER_PRODUCT_SUCCESS = "设置商品客户关系【{{#customer.customerName}}】";



    String SYSTEM_PAYMENT_TYPE = "充值中心";
    String SYSTEM_PAYMENT_UPDATE_TYPE = "更新充值记录";
    String SYSTEM_PAYMENT_CREATE_TYPE = "创建充值记录";
    String SYSTEM_PAYMENT_APPROVE_TYPE = "审核充值记录";

    String SYSTEM_PAYMENT_CREATE_SUCCESS = "创建了充值记录";
    String SYSTEM_PAYMENT_UPDATE_SUCCESS = "更新了充值记录";
    String SYSTEM_PAYMENT_APPROVE_SUCCESS = "审核充值记录";


    //充值
    String SYSTEM_PAYMENT_CUSTOMER_RECHARGE = "客户余额增加充值";
    String SYSTEM_PAYMENT_CUSTOMER_RECHARGE_SUCCESS = "客户余额增加充值成功";
    String SYSTEM_PAYMENT_CUSTOMER_CREDIT = "客户余额增加授信";
    String SYSTEM_PAYMENT_CUSTOMER_CREDIT_SUCCESS = "客户余额增加授信成功[{{#feeValue}}]";



    String SYSTEM_CREDIT_TYPE = "授信管理";
    String SYSTEM_CREDIT_UPDATE_TYPE = "更新充值中心";
    String SYSTEM_CREDIT_CREATE_TYPE = "创建授信记录";

    String SYSTEM_CREDIT_CREATE_SUCCESS = "新添授信记录";


    String SYSTEM_ORDER_TYPE = "订单管理";
    String SYSTEM_ORDER_CREATE_TYPE = "创建订单";
    String SYSTEM_ORDER_UPDATE_TYPE = "更新订单";   
    String SYSTEM_ORDER_DELETE_TYPE = "删除订单";

    String SYSTEM_ORDER_FEE_CREATE_TYPE = "新增订单账单";
    String SYSTEM_ORDER_FEE_DELETE_TYPE = "删除订单账单";
    String SYSTEM_ORDER_DELETE_SUCCESS = "删除了订单【{{#order.orderCode}}】";
    String SYSTEM_ORDER_CREATE_SUCCESS = "创建了订单【{{#order.orderCode}}】";
    String SYSTEM_ORDER_CANCEL_APPROVE_SUCCESS = "订单【{{#order.orderCode}}】取消申请完成";
    String SYSTEM_ORDER_FEE_CREATE_SUCCESS = "新增订单账单【{{#fee.orderCode}}】";
    String SYSTEM_ORDER_FEE_DELETE_SUCCESS  = "删除订单账单【{{#fee.orderCode}}】";
    String SYSTEM_ORDER_BASE_FEE_DELETE_SUCCESS  = "取消订单后删除账单【{{#orderCode}}】";
}
